#!/bin/sh

VERSION=$(head -1 README.txt | sed 's/.*: //')
ARCHIVE="YaFotki-$VERSION.zip"
SRC="YandexFotki.lrplugin"

cd ..

[ -f "$ARCHIVE" ] && rm $ARCHIVE

zip -9 -r "$ARCHIVE" "$SRC" -x "$SRC"/.\* "$SRC"/presets/.\* "$SRC"/pack.sh 
